<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		onLaunch: function() {
		    console.log('App Launch');
		    // #ifdef APP-PLUS
		    // token标志来判断
		    let token= uni.getStorageSync('token');    
		    if (token) {
			    //存在则关闭启动页进入首页
				plus.navigator.closeSplashscreen();
			
		    } else {
				//不存在则跳转至登录页
		        uni.reLaunch({
		            url: "/pages/login/login",
				    success: () => {
				        plus.navigator.closeSplashscreen();
				    }
		    	})
		    }
		    // #endif
		}
	}
</script>
<!-- 3.指定lang="scss" -->
<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	/* 全局引用 字体 图标 相关样式文件 */
	/*每个页面公共css */
	@import url("./static/font.css");
	
</style>
